package org.apache.ibatis.io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class Resources {
	public static InputStream getResourceAsStream(String resource){
		InputStream is = null;
		try {
			is = Resources.class.getClassLoader().getResourceAsStream(resource);
		} catch (Exception e) {
			System.out.println("加载文件:"+resource+"失败"+e.getMessage());
		}
		return is;
	}

}
